// src/api/dashboard.js
import request from '@/utils/request'

/**
 * 获取仪表盘数据
 * @returns {Promise<{stats: {activeAds: number, totalImpressions: number, totalClicks: number}, recentAds: Array}>}
 */
export const getDashboardData = () => {
    return request({
        url: '/dashboard',
        method: 'get',
    })
}